<ul class="list-group">
    <li class="list-group-item {:$controllername =='message'?'active':''}">
        <a href="{:url('index/message/index')}">
            <i class="fa fa-bullhorn"></i> {:__('消息中心')}
            {if $msg_number}
                <span style="color: #fff;background-color: red;display: inline-block;width: 20px;height: 20px;font-size: 10px;text-align: center;border-radius: 10px;">
                    {$msg_number}
                </span>
            {/if}
        </a>
    </li>
</ul>